/**
 * User: qihailong
 * ProjectName : DHDS
 * FileName : getRoleById
 * Date: 2018/7/20
 * Time: 14:54
 *
 */
import getRoleList from './getRoleList'

export default function (id) {
  return new Promise(function (resolve,reject) {
	getRoleList().then(list=>{
	  list.forEach(l=>{
	    if(l.id = id ){
		  resolve(l);
		}
	  })
	})
  });
}
